<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert definition=".mainLayout">
    <logic:notPresent role="Customer,Employee,Admin,Manager">
        <tiles:put name="content" value="/Register.zul"/>
    </logic:notPresent>
    <logic:present role="Customer,Employee,Admin,Manager">
    <tiles:put name="content" type="String">
        <div style="text-align: left; padding: 10px; padding-top: ">
            Please <a href="logout">logout</a> first before registering a new account.
        </div>
    </tiles:put>
    </logic:present>
</tiles:insert>
